/*
 * TrackerSD.hh
 *
 *  Created on: 14.04.2011
 *      Author: ed
 */

#ifndef TRACKERSD_HH_
#define TRACKERSD_HH_
#include "G4VSensitiveDetector.hh"
#include "TTree.h"
#include "TFile.h"
#include "globals.hh"
typedef struct
{
	G4double ppe,phi,theta;

}Event;
class TrackerSD : public G4VSensitiveDetector
{
public:
	TrackerSD(G4String name);
	virtual ~TrackerSD();
	void Initialize(G4HCofThisEvent*HCE);
	void EndOfEvent(G4HCofThisEvent*HCE);
	G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
private:
	G4int ppe;
	G4double phi,theta;
	Event evt;
	TFile* file;
	TTree* tree;
	int count;
};

#endif /* TRACKERSD_HH_ */
